#ifndef DERIVED_H
#define DERIVED_H

#include "base.h"  // 依赖 base_lib 的头文件
#include <vector>

namespace Derived {
    class DerivedClass {
    public:
        DerivedClass();
        void addBase(const Base::BaseClass& base);
        std::vector<Base::BaseClass> getBases() const;
        void processAll();
        int getTotalValue() const;
        
    private:
        std::vector<Base::BaseClass> bases_;
    };
    
    // 全局函数
    void initializeDerived();
    void cleanupDerived();
}

#endif // DERIVED_H